package net.icontents.dao;

import java.util.List;

import net.icontents.beans.component.ArticleComponent;

public interface ArticleComponentDao extends BaseDao<ArticleComponent> {

	/**
	 * 删除文章的所有组件
	 * @param articleId
	 */
	public void deleteByArticleId(int articleId);
	/**
	 * 获取特定位置的组件列表
	 * @param articleId
	 * @param position
	 * @return
	 */
	public List<ArticleComponent> selectByArticleId(long articleId,int position);
	
	/**
	 * 获取特定位置的组件
	 * @param articleId
	 * @param sequence
	 * @param position
	 * @return
	 */
	public ArticleComponent getArticleComponentById(int articleId,int sequence,int position);
}
